package examTest;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.URL;
import java.net.URLConnection;

public class SimpleCallc {

	public int value;
	public void calculate(){
		value+=7;
	}
	
	 public static void main(String ...args) throws Exception{
			
		 multiCalc ms=new multiCalc();
		 ms.calculate(2);
		 System.out.println("the value of var is "+ms.value);
		 
		 
		 
		 
		 
		 
		 
		 
		 
		 URLConnection conn=new URL("www.google.fr").openConnection();
		 
		 conn.connect();
		 
		 BufferedReader br =new BufferedReader(new InputStreamReader(conn.getInputStream()));
		 BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(conn.getOutputStream()));
		 
		 bw.write("zeze");
		 bw.append("dfdfdf");
		 bw.close();
		 
		 
		 
		 
		 
		 
		 
		 
		 
		 
		 
		 
		 
		 
		 
		 
		 
		 
	 }
}
 class multiCalc extends SimpleCallc{
	 
	 public void calculate(){
		 
		 value-=3;
	 }
	 public void calculate(int multiplier){
		 
		 calculate();
		 super.calculate();
		 value*=multiplier;
		 
	 } 
	 
	
 }